//
//  BaseView.m
//  CBT
//
//  Created by Mr.Zhang on 2018/11/20.
//  Copyright © 2018 Mr.Zhang. All rights reserved.
//

#import "BaseView.h"

@implementation BaseView

-(instancetype)init
{
    if (self == [super init]) {
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeLanguage) name:ChangeLanguageNotificationName object:nil];
        [self initSubViews];
    }
    return self;
}

-(instancetype)initWithFrame:(CGRect)frame{
    if (self == [super initWithFrame:frame]) {
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeLanguage) name:ChangeLanguageNotificationName object:nil];
        [self initSubViews];
    }
    return self;
}

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self == [super initWithCoder:aDecoder]) {
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeLanguage) name:ChangeLanguageNotificationName object:nil];
        [self initSubViews];
    }
    return self;
}

- (void)controlLayout{}

- (void)initSubViews{}

- (void)changeLanguage{}

- (void)defaultSubViews{}

@end
